package com.soft.javase.day01.practice;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/15
 */
public class Emperor {
    private String name;
    private String reign;
    private String achievement;
    private String description;

    public Emperor() {
    }

    public Emperor(String name, String reign, String achievement, String description) {
        this.name = name;
        this.reign = reign;
        this.achievement = achievement;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReign() {
        return reign;
    }

    public void setReign(String reign) {
        this.reign = reign;
    }

    public String getAchievement() {
        return achievement;
    }

    public void setAchievement(String achievement) {
        this.achievement = achievement;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void show() {
        System.out.println("姓名：" + name + "\n" +
                "在位时间：" + reign + "\n" +
                "政绩：" + achievement + "\n" +
                "描述：" + description);
    }


}
